<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function sum(a,b){
            let result = a+b
            document.write(result)
            return result
        }
        sum(3,5)
    </script>
</body>
</html>